<%@ page contentType="text/html;charset=UTF-8"%>
<%@ page import="java.util.*"%>
<%@ page import="com.changil.admin.dto.Article"%>
<%@ taglib prefix="c" uri="http://java.sun.com/jsp/jstl/core"%>
<!doctype html>
<html>
<head>
<title>노원창일교회 ADMIN - 글상세</title>
<meta http-equiv="content-type" content="text/html; charset=utf-8">
<link href="/NowonChangilChurch_Admin/assets/css/board.css"
	rel="stylesheet" type="text/css">
</head>
<body>
	<div id="container">
		<%@ include file="/views/common/header.jsp"%>
		<div id="content">
			<div id="board">
				<table>
					<tr>
						<td colspan=3 align=right>
							<form action="/NowonChangilChurch_Admin/board" method="post">
								<input type="hidden" name="a" value="delete"> 
								<input type="hidden" name="boardId" value="<%=request.getParameter("boardId")%>">
								<input type="hidden" name="articleId" value="${article.id}">
								<c:choose>
								<c:when test="${authUser != null }">
								<input type="submit" VALUE="삭제" class=button>
								</c:when>
								</c:choose> 
								<a href="/NowonChangilChurch_Admin/board?boardId=<%=request.getParameter("boardId")%>"><input type="button" VALUE="목록" class=button></a>
								<c:choose>
								<c:when test="${authUser != null }">
								<a href="/NowonChangilChurch_Admin/board?a=modifyform&boardId=<%=request.getParameter("boardId")%>&articleId=${article.id}"><input type="button" VALUE="수정" class=button></a>
								</c:when>
								</c:choose>
							</form>
						</td>
					</tr>
					<tr>
						<th colspan=3>제목: ${article.title}</th>
					</tr>
					<tr>
						<td>작성자: ${article.writer.name}</td>
						<td>작성시간: ${article.writtenDateTime}</td>
					</tr>
					<tr class=content>
						<td colspan=3>${article.content}</td>
					</tr>
				</table>
			</div>
		</div>
		<%@ include file="/views/common/navigation.jsp"%>
		<%@ include file="/views/common/footer.jsp"%>
	</div>
</body>
</html>